package com.opensource.component.extend.point;

import com.opensource.component.extend.point.enums.SpecificExtendFlagEnum;
import com.opensource.component.extend.point.simple.BeanDemo;
import com.opensource.component.extend.point.simple.BeanDemoA;
import com.opensource.component.extend.point.simple.BeanDemoC;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author zhanglong and since on 2022/12/13 8:10 下午
 */
@SpringBootApplication
public class ExtendPointApplication {
    public static void main(String[] args) {
        final ConfigurableApplicationContext run = SpringApplication.run(ExtendPointApplication.class);
        System.out.println(run.getEnvironment().getProperty(SpecificExtendFlagEnum.extend_flag));
        run.getBean(BeanDemo.class).demo();
        run.getBean(BeanDemoA.class).demo();
//        run.getBean(BeanDemoB.class).demo();
        run.getBean(BeanDemoC.class).demo();
    }
}
